import Cookie from 'js-cookie';

const Token = 'token';
const Username = 'username';
const Password = 'password';
const RememberMe = 'rememberMe';

export function getToken(){
    return Cookie.get(Token)
}

export function setToken(token){
    return Cookie.set(Token,token)
}

export function removeToken(){
    return Cookie.remove(Token)
}

export function getUsername(){
    return Cookie.get(Username)
}

export function setUsername(username){
    return Cookie.set(Username,username)
}

export function removeUsername(){
    return Cookie.remove(Username)
}

export function getPassword(){
    return Cookie.get(Password)
}

export function setPassword(password){
    return Cookie.set(Password,password)
}

export function removePassword(){
    return Cookie.remove(Password)
}

export function getRememberMe(){
    return Cookie.get(RememberMe)
}

export function setRememberMe(rememberMe){
    return Cookie.set(RememberMe,rememberMe)
}

export function removeRememberMe(){
    return Cookie.remove(RememberMe)
}